normalPdf
Statistics Mar10 Timm Revised

How to Find a Probability  from a Normal Distribution]

Problem
=======

Given the mean "_m_" and standard deviation "_s_" of a normal distribution,
you want to determine the probability of an event within that
distribution.

Solution
========

 function gaussianPdf(m,s,x) {
     return 1/(s*sqrt(2*Pi))*Ee^(-1*(x-m)^2/(2*s*s))
 }

   function GaussianPdf() {
       constants();
       print gaussianPdf(100,10,99)
       print gaussianPdf(100,10,120)
   }

Notes
=====

To be precise, the probability of a continuous feature having exactly
the value x is zero, but the probability that it lies within a small
region, say x+-&epsilon;. Since &epsilon; is a constant that weighs
across all possibilities, we can  cancel it out (and  not be compute it).

Author
======

Tim Menzies

